import request from '@/utils/http'

// 登录接口
export const loginAPI = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

// 猜你喜欢
export const getLikeListAPI = ({ limit = 4 }) => {
  return request({
    url: '/goods/relevant',
    params: {
      limit
    }
  })
}

// 获取我的订单数据
export const getUserOrder = (params) => {
  return request({
    url: '/member/order',
    method: 'GET',
    params
  })
}
